<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Credits.aspx.cs" Inherits="CreditsPage"  EnableEventValidation="false"  %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
<%@ Register TagPrefix="cpf" TagName="ContractsPrintForm" Src="~/Controls/ContractsPrintForm_Control.ascx" %>
<%@ Register TagPrefix="cfpf" TagName="ContractsFijusiunePrintForm" Src="~/Controls/ContractsFidejusiunePrintForm_Control.ascx" %>
<%@ Register TagPrefix="csd" TagName="ClientSelectionControl" Src="~/Controls/ClientSelectionControl.ascx" %>
<%@ Register TagPrefix="lsd" TagName="LoanSelectionDialog" Src="~/Controls/LoanSelectionDialog.ascx" %>
<%@ Register TagPrefix="pfc" TagName="PledgeForm" Src="~/Controls/PledgeForm.ascx" %>
<%@ Register TagPrefix="fc" TagName="FilterControl" Src="~/Controls/FilterWindow.ascx" %>
<%@ Register TagPrefix="fb" TagName="FileBrowser" Src="~/Controls/NFileBrowser.ascx" %>
<%@ Register TagPrefix="ci" TagName="ClientInfo" Src="~/Controls/ClientInfo.ascx" %>
<%@ Register TagPrefix="lc" TagName="LoanComment" Src="~/Controls/LoanComment.ascx" %>
<%@ Register TagPrefix="lac" TagName="LoanComment" Src="~/Controls/LoanAnalizComments.ascx" %>
<%@ Register TagPrefix="ldc" TagName="LoanComment" Src="~/Controls/LoanDelaysComments.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">   

    <script type="text/javascript" src="../Scripts/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.colorbox.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.helper.js?<% Response.Write(Utils.GetBuildNumber()); %>"></script>
    <script type="text/javascript" src="../scripts/developer.js?<% Response.Write(Utils.GetBuildNumber()); %>"></script>
    <script type="text/javascript" src="../scripts/Financial.js?<% Response.Write(Utils.GetBuildNumber()); %>"></script>

     <style type="text/css">	
    .transp{
        background-color: transparent;
        border: none;
    }
    .miniText{
        font-size: 11px;
        text-transform:uppercase;
        }

    </style>

     <script type="text/javascript" language="javascript">
        
        function TestLoanStartDate(textControl) {                  
            var loanStartDate = document.getElementById('<%= loandDataEliberariiTextBox.ClientID  %>');
            if (loanStartDate.value == "")
            { loanStartDate.value = textControl.value; }
        }

    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
          
    &nbsp;<asp:Panel ID="emptyPanel" runat="server" visible="false">
        <div align="center">
            <h1 >Credite</h1>
        </div>
    </asp:Panel>

    <lsd:LoanSelectionDialog ID="loanSelectionDialog" runat="server" OnOnClientSelected="loanSelectionDialog_Selected" />
    <fb:FileBrowser ID="personalFileBrowser" runat="server" /> 
    <lc:LoanComment ID="loanComitetCommentControl" runat="server" OnMessagesUpdated="loanComitetCommentControl_MessagesUpdated" />

    <asp:Panel ID="addEditCreditPanel" runat="server" visible="false" >  

        <div style="float:left; width:70%; font-size: 10px;">   
            <div  style="float:left; width:20%; padding-top:5px;">
                Data cererii<br />
                <asp:TextBox ID="requestDateTextBox" runat="server" Width="90%" CssClass="miniText" onchange="javascript: TestLoanStartDate(this);"></asp:TextBox>
                <ajax:CalendarExtender ID="requestDateCalendarExtender" runat="server" TargetControlID="requestDateTextBox" />
                <asp:RequiredFieldValidator ID="requestDateValidator" runat="server" ErrorMessage="Data cererii este necesara!" ControlToValidate="requestDateTextBox" Display="None"></asp:RequiredFieldValidator>
                <ajax:ValidatorCalloutExtender runat="Server" ID="NReqE"  TargetControlID="requestDateValidator" />
            </div>
            <div class="cell" style="float:left; width:70%;">
                Clientul<br />
                <asp:TextBox ID="loanClientDescription" runat="server" Width="60%" ReadOnly="true" Enabled="false" CssClass="miniText"></asp:TextBox>
                 &nbsp;&nbsp;
                <asp:Button ID="loanClientInfoButton" runat="server" Text="i" OnClick="loanClientInfoButton_Click" CausesValidation="false" Width="30px" />
                <ci:ClientInfo ID="clientInfoControl" runat="server" />
                &nbsp;&nbsp;
                <asp:Button ID="addNewloanButton" runat="server" Text=" + Credit" OnClick="addNewloanButton_Click"  CausesValidation="false" Width="70px"/>
                &nbsp;&nbsp;
                <asp:Button ID="personalFolderButton" runat="server" Text="Mapa Personala" OnClick="PersonalFolderButton_Click" Width="130px"  CausesValidation="false" />
                <asp:HiddenField ID="loanClientSelectedIDHiddenField" runat="server"/>
                <asp:RequiredFieldValidator ID="loanClientDescriptionRequiredFieldValidator" runat="server" ErrorMessage="Alegeti va rog clientul!" ControlToValidate="loanClientDescription" Display="None"></asp:RequiredFieldValidator>
                <ajax:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"  TargetControlID="loanClientDescriptionRequiredFieldValidator" />                
            </div>           
            <div style="clear:both;"></div>


            <div style="float:left; width:10%; min-width:130px;">
                Suma:<br />
                <asp:Label ID="contractAmountLabel" Text="" runat="server"></asp:Label> <br />
                <asp:TextBox ID="contractAmountTextBox" runat="server" Width="90%" CssClass="miniText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="contractAmountTextBoxRequiredFieldValidator" runat="server" ErrorMessage="Intoruceti va rog suma!" ControlToValidate="contractAmountTextBox" Display="None"></asp:RequiredFieldValidator>
                <ajax:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"  TargetControlID="contractAmountTextBoxRequiredFieldValidator" />      
            </div>

            <div style="float:left; width:10%; min-width:90px;" >                           
                Termen (luni)<br />
                <asp:Label ID="paymentsCountLabel" runat="server" Text=""></asp:Label> <br />
                <asp:TextBox ID="loanNrOfMonthsTextBox" runat="server" Width="80px" CssClass="miniText"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="loanNrOfMonthsTextBoxRequiredFieldValidator" runat="server" ErrorMessage="Intoruceti nr. de luni!" ControlToValidate="loanNrOfMonthsTextBox" Display="None"></asp:RequiredFieldValidator>
                <ajax:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"  TargetControlID="loanNrOfMonthsTextBoxRequiredFieldValidator" />    
                <asp:RangeValidator ID="creditPeriodCount_RangeValidator" runat="server" 
                        ControlToValidate="loanNrOfMonthsTextBox" 
                        ErrorMessage="Va rugam sa respectati valorile (MIN / MAX)" MaximumValue="0" 
                        MinimumValue="0" Type="Integer" Display="None"></asp:RangeValidator>       
                <ajax:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender9"  TargetControlID="creditPeriodCount_RangeValidator" />           
            </div>
            <div style="float:left; width:10%; min-width:100px;" >
                Dobinda<br />
                <asp:Label ID="contractPercetLabel" Text="" runat="server"></asp:Label> <br />
                <asp:TextBox ID="contractPercentTextBox" runat="server" Width="40%" CssClass="miniText" ></asp:TextBox>
                <asp:TextBox ID="alternativePercentTextBox" runat="server" Width="40%" CssClass="miniText" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="contractPercentTextBoxRequiredFieldValidator" runat="server" ErrorMessage="Intoruceti procentul!" ControlToValidate="contractPercentTextBox" Display="None"></asp:RequiredFieldValidator>
                <ajax:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender5"  TargetControlID="contractPercentTextBoxRequiredFieldValidator" /> 
            </div> 
            <div style="float:left; width:10%; min-width:70px;"> 
                <br /> Plati la <br />  
                <asp:DropDownList ID="payPeriodDDL" runat="server" CssClass="miniText" Enabled="false"></asp:DropDownList>
            </div>
            <div style="float:left; width:90px;">                
                Per grat.<br /> 
                penalitate<br />
                <asp:TextBox ID="penaltyGracePeriodTextBox" runat="server" Text="0" Width="30px" CssClass="miniText"></asp:TextBox>
            </div>          
            <div style="float:left; width:10%; min-width:120px;">
            <br />
                <asp:RadioButton ID="calculateDinSoldInitialRadioButton" runat="server" Text="Sold initial" TextAlign="Right" Checked="true" GroupName="modeCalc" />
                <br />
                <asp:RadioButton ID="calculateDinSoldRamasRadioButton" runat="server"  Text="Soldul ramas" TextAlign="Right" Checked="false" GroupName="modeCalc"  />             
            </div>  
            <div class="cell" style="float:left; width:15%; padding-top:5px;">
                Program<br />
                <asp:DropDownList runat="server" ID="loanProgramDDL" Width="90%" CssClass="miniText"></asp:DropDownList>
            </div>
            <div class="cell" style="width:15%; padding-top:5px;">
                Produs<br />
                <asp:DropDownList runat="server" ID="loanProdusDDL" Width="90%" AutoPostBack="true" CssClass="miniText" OnSelectedIndexChanged="loanProdusDDL_SelectedIndexChanged"></asp:DropDownList>
                <asp:HiddenField ID="calculatePenaltyFrom_HiddenField" runat="server" />
                <asp:HiddenField ID="penaltyValue_HiddenField" runat="server" />
            </div>
            
            <div style="clear:both;"></div>

            <div style="width:60%; float:left;">
                Scopul creditului<br />
                <asp:TextBox runat="server" ID="loanScopeTextBox" TextMode="MultiLine" Width="98%" CssClass="miniText"></asp:TextBox>
            </div>           
            <div style="width:20%; float: left;">
                Linia de Creditare <br />
                <asp:DropDownList ID="creditLineDDL" runat="server" Width="90%" CssClass="miniText"> </asp:DropDownList>
            </div>
            <div style="width:15%; float: left;">
                Starea creditului <br />
                <asp:DropDownList ID="creditStateDDL" runat="server" Width="90%" CssClass="miniText"> </asp:DropDownList>
            </div>

            <div style="clear:both;"></div>

            <div style="float:left; width:10%;">
                Cod Contract <br />
                <asp:TextBox ID="contractCodeTextBox" runat="server" Width="85%" CssClass="miniText"></asp:TextBox>
            </div>
            <div style="float:left; width:10%;">
                Data Contract <br />
                <asp:TextBox ID="loanDataContractelorTextBox" runat="server" Width="90%" CssClass="miniText"></asp:TextBox>
                <ajax:CalendarExtender ID="loanDataContractelorCalendarExtender" runat="server" TargetControlID="loanDataContractelorTextBox" />
            </div>
            <div style="float:left; width:10%;">
                Data eliberearii <br />
                <asp:TextBox ID="loandDataEliberariiTextBox" runat="server" Width="90%" CssClass="miniText"></asp:TextBox>
                <ajax:CalendarExtender ID="loandDataEliberariiCalendarExtender" runat="server" TargetControlID="loandDataEliberariiTextBox" />
            </div>
            <div style="float:left; width:10%;">
                Data scadentei <br />
                <asp:TextBox ID="loanDataScadenteiTextBox" runat="server" Width="90%" CssClass="miniText"></asp:TextBox>
                <ajax:CalendarExtender ID="dataScadenteiCalendarExtender" runat="server" TargetControlID="loanDataScadenteiTextBox" />
            </div>
            <div style="float:left; width:10%;">
                Valuta de referinta <br />
                <asp:DropDownList ID="referenceCurrencyDDL" runat="server"  CssClass="miniText" AutoPostBack="true" OnSelectedIndexChanged="referenceCurrencyDDL_SelectedIndexChanged"></asp:DropDownList>
            </div>
            <div style="width:8%; float: left;">
                Curs BNM <br />
                <asp:TextBox ID="currencyChangeRateTextBox" runat="server" Width="90%" CssClass="miniText" ToolTip="Curs BNM la data contractului"></asp:TextBox>
            </div>    
            <div style="width:8%; float: left;">
                <br />
                <asp:Button ID="getCurrencyButton" runat="server" Text="Get" OnClick="getCurrencyButton_Click" />
            </div>   
            <div style="width:15%; float: left;">
                Specialistul de creditare <br />
                <asp:DropDownList ID="loanCreatorDDL" runat="server" Width="90%" CssClass="miniText"></asp:DropDownList>
            </div> 
            <div style="width:15%; float: left;">
                Categoria contractului <br />
                <asp:DropDownList ID="loanCategoryDDL" runat="server" Width="90%" CssClass="miniText"></asp:DropDownList>
            </div>     
         </div>

        <div style="width:30%; float:left;">
            <div  style="float:left; width:50%; ">       
                Garantii: fidejusori <br />
                <asp:ListBox ID="garantiiFidejusoriListBox" runat="server" Width="100%" Height="60px" CssClass="miniText"></asp:ListBox>
                <csd:ClientSelectionControl ID="garantFudjiClient" runat="server" AllowMultiSelection="false" OnOnClientSelected="garantFudjiClient_ClientSelected" />
                <br />
                <asp:Button ID="addGarantiiFidejusoriButton" Text="Adauga" runat="server" OnClick="addGarantiiFidejusoriButton_Click" CausesValidation="false" />
                <asp:Button ID="removeGarantiiFidejusoriButton" Text="Sterge" runat="server" OnClick="removeGarantiiFidejusoriButton_Click" CausesValidation="false" />
            </div>
            <div  style="float:left; width:50%; ">
                Garantii: gaj ori ipoteca <br />
                <asp:ListBox ID="garantiiGajIpotecaListBox" runat="server" Width="100%" Height="60px" CssClass="miniText"></asp:ListBox>            
                <pfc:PledgeForm ID="gajControl" runat="server" OnOnClientSelected="gajControl_OkClick" />   
                <br />
                <asp:Button ID="addGajIpotecaButton" Text="Adauga" runat="server" OnClick="addGajIpotecaButton_Click" CausesValidation="false" Width="64px" />                   
                <asp:Button ID="removeGajIpotecaButtonButton" Text="Sterge" runat="server" OnClick="removeGajIpotecaButtonButton_Click" CausesValidation="false" />              
            </div>
            <div class="clear"></div>

            <div style="float:left; width:100%;">
                <asp:ListBox ID="messagesListBox" runat="server" Width="100%" Height="80px" CssClass="miniText" ></asp:ListBox>   
                <fc:FilterControl ID="comitetMemberFilter" runat="server" Height="250px" Width="400px"  AllowMultiSelection="true" SelectButtonText="Comitetul de Creditare" SelectButtonWidth="160px" TitleWindow="Lista Utilizatorilor inregistrati" OnEntrySelected="comitetMemberFilter_EntrySelected"  />                   
            </div>                             
        </div>
        
        <div style="clear:both;"></div>
        <div class="centerBox" style="width:140px">
            <asp:Button ID="saveLoanButton"  runat="server" Text="Salvare" onclick="saveLoanButton_Click" Width="130px"   />                     
        </div>
       
    </asp:Panel>

    <asp:Panel ID="creditAllDetailsPanel" runat="server" Visible="false">
        <br />

        <ajax:TabContainer ID="creditAllDetailsContainer"  runat="server" cssclass="ajax__myTab"  Width="100%" ActiveTabIndex="1">   
            <ajax:TabPanel ID="bussnesAnalisysTabPanel" runat="server">
                <HeaderTemplate>   Analiza afacerii  </HeaderTemplate>	  
                <ContentTemplate>  
                    <lac:LoanComment ID="analizComentControl" runat="server" />
                </ContentTemplate>  
            </ajax:TabPanel>
            <ajax:TabPanel ID="monitorizareCreditTabPanel" runat="server">
                <HeaderTemplate>  Monitorizare credit (generare documnete)  </HeaderTemplate>
                <ContentTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Print font size:"></asp:Label>
                        <asp:DropDownList ID="printFontSizeSelector" runat="server" AutoPostBack="True" OnSelectedIndexChanged="printFontSizeSelector_SelectedIndexChanged">
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem Selected="True">3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem>8</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:CheckBox runat="server" TextAlign="Left" ID="addAmountratedToPrintFormCheckBox" Text="Afiseaza colonita cu Valuta:" Checked="false" AutoPostBack="true" OnCheckedChanged="addAmountratedToPrintFormCheckBox_CheckedChanged" />
                        <br />            

                        <ajax:Accordion ID="printFormAccordion" runat="server" SelectedIndex="-1" Width="90%"
                            HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
                            ContentCssClass="accordionContent" FramesPerSecond="40" 
                            TransitionDuration="250" RequireOpenedPane="False" SuppressHeaderPostbacks="True"  >                            
                        </ajax:Accordion>               
                    </ContentTemplate> 
                </ajax:TabPanel>
                <ajax:TabPanel ID="TabPanel1" runat="server">
                    <HeaderTemplate>  Intirzieri  </HeaderTemplate>	                
                    <ContentTemplate>  
                         <ldc:LoanComment ID="LoanDelaysCommentsControl" runat="server" />
                    </ContentTemplate> 
                </ajax:TabPanel>
                <ajax:TabPanel ID="TabPanel" runat="server">
                    <HeaderTemplate>  Consultatii  </HeaderTemplate>	
                    <ContentTemplate> </ContentTemplate> 
                </ajax:TabPanel>
                <ajax:TabPanel ID="TabPanel2" runat="server">
                    <HeaderTemplate> Vizite Parteneri  </HeaderTemplate>	
                    <ContentTemplate>   </ContentTemplate> 
                </ajax:TabPanel>
                <ajax:TabPanel ID="manualEditCreditTabPanel" runat="server">
                    <HeaderTemplate>  Editarea manuala a grficului  </HeaderTemplate>	                                    
                    <ContentTemplate>                       
                        <asp:Button ID="saveloanOrdersButton" runat="server" Text="Salveaza Graficul" onclick="saveloanOrdersButton_Click" Width="150px" CausesValidation="False" />
                         &nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Button ID="previewLoanButton" runat="server" Text="Graficul salvat"  onclick="previewLoanButton_Click" Width="150px" CausesValidation="False"  />     
                         &nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Button ID="initialLoanOrdersButton" runat="server" Text="Resetare Grafic"  onclick="initialLoanOrdersButton_Click" Width="150px" CausesValidation="False" Style="background:url('../App_Images/delete.png') no-repeat center left transparent; "  />                    
                             
                        <asp:Gridview ID="manualEditCreditGridView" 
                            runat="server" 
                            ShowFooter="True" 
                            AutoGenerateColumns="False" 
                            onrowdeleting="manualEditCreditGridView_RowDeleting" >
                            <Columns>
                                <asp:TemplateField HeaderText="Nr.">
                                    <ItemTemplate>
                                        <asp:Label ID="nrLabel" runat="server" Text=""></asp:Label>                                
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Data"><FooterTemplate>
                                    <asp:Button ID="manualEditCreditButtonAdd" runat="server" Text="Add new" OnClick="manualEditCreditButtonAdd_Click" />                                
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="manualEditCreditDataTextBox" runat="server" Style="background-color: transparent; border: none;  text-align:center;" Width="80px"></asp:TextBox>
                                    <ajax:CalendarExtender ID="CalendarExtender333" runat="server" Format="<%# Constants.Constants.ISODateBackwardDotsFormat %>" TargetControlID="manualEditCreditDataTextBox" />                                
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Zile"><FooterTemplate>   
                                    <asp:Label ID="totalDaysLabel" runat="server" Text="Total" CssClass="tableFooter"></asp:Label>                                
                                </FooterTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="daysLabel" runat="server" Style="background-color: transparent; border: none;  text-align:center;" Width="80px"></asp:TextBox>                                
                                </ItemTemplate>
                            <FooterStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Suma Ramasa"><ItemTemplate>
                                <asp:TextBox ID="manualEditCreditRemainingAmountTextBox" runat="server" Width="100px" Style="background-color: transparent; border: none; text-align:right;"></asp:TextBox>                                                
                        </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Rata Imprumutului"><FooterTemplate>   
                            <asp:Label ID="manualEditCreditTotalmainRateLabel" runat="server" Text="Total" CssClass="tableFooter"></asp:Label>                                
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="manualEditMainRateTextBox" runat="server"  placeholder="0"  Style="background-color: transparent; border: none; text-align:right;" Width="100px"></asp:TextBox>
                            <asp:HiddenField ID="manualEditMainRateModifiedHiddenField" runat="server" />                                
                        </ItemTemplate>
                        <FooterStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Dobinda"><FooterTemplate>
                            <asp:Label ID="manualEditCreditTotalProcetLabel" runat="server" Text="Total" CssClass="tableFooter"></asp:Label>                                
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="percentTextBox" runat="server" Style="background-color: transparent; border: none; text-align:right;" Width="100px"></asp:TextBox>                                
                        </ItemTemplate>
                        <FooterStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Suma Totala"><FooterTemplate>                  
                            <asp:Label ID="manualEditCreditTotalAmountLabel" runat="server" Text="Total" CssClass="tableFooter"></asp:Label>                                
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="manualEditCreditTotalAmountTextBox" runat="server" Style="background-color: transparent; border: none; text-align:right;" Width="100px"></asp:TextBox>                                                 
                        </ItemTemplate>

                        <FooterStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Total spre plata, USD"><FooterTemplate>                  
                            <asp:Label ID="manualEditCreditTotalTotalAmount_RatedLabel" runat="server" Text="Total" CssClass="tableFooter" ></asp:Label>                                
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="manualEditCreditTotalAmount_RatedTextBox" runat="server" Style="background-color: transparent; border: none; text-align:right;" Width="100px"></asp:TextBox>                                                 
                        </ItemTemplate>

                        <FooterStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Delete"><ItemTemplate>
                            <asp:Button ID="manualEditCreditDeleteButton" runat="server" CommandName="Delete" Text="Delete" OnClientClick="return confirm('Sunteti sigur ca vreti sa stergeti?');" />                                
                        </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:Gridview>                
            </ContentTemplate>
        </ajax:TabPanel>
        </ajax:TabContainer>
    </asp:Panel>   

</asp:Content>

